V8_INC=/home/pavel/AMSE/v8/v8/include
V8_LIB=/home/pavel/AMSE/v8/v8/libv8.a 

all: lineprocessor

lineprocessor: 
	g++ -I$(V8_INC) lineprocessor.cpp -o lineprocessor $(V8_LIB) -lpthread

lineprocessor.o: lineprocessor.cpp
	g++ -c lineprocessor.cpp

run: lineprocessor
	./lineprocessor capitalizer.js -p 9222 --main-cycle-in-cpp --callback

clean: 
	rm *.o lineprocessor
